package com.bob.blogs.controller;

import com.bob.blogs.model.po.UserPo;
import com.bob.blogs.service.IUserService;
import jdk.nashorn.internal.objects.annotations.Getter;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author bob
 * @create 2019-07-04
 */
@RestController
@RequestMapping(value = "/user")
public class UserRestController {
    @Resource
    private IUserService iUserService;

    @GetMapping("/list")
    public Object getUserList(){
        return iUserService.getAllUserInfo();
    }

    @PutMapping("")
    public Object updaetUser(@RequestBody UserPo userPo){
        return null;
    }
}
